(function(){
	let nav = document.querySelector("nav"),sportSpan = nav.lastElementChild;
	nav.onclick = function(){
		var target = event.srcElement;
		if(target.nodeName == "A"){
			sportSpan.style.left = target.className;
			Array.prototype.slice.apply(nav.children).slice(0,5).forEach(val=>val.style.color = "#807f93")
			target.style.color = "#191919";
		}
	}
})()